import Vue from 'vue';
import ElementUI from 'element-ui';
import VueRouter from 'vue-router';
import router from './router'
import 'element-ui/lib/theme-chalk/index.css';
import 'element-ui/lib/theme-chalk/display.css';
import App from './App.vue';
import axios from 'axios'
import './assets/iconfont/iconfont.css'
import CKEditor from 'ckeditor4-vue';

Vue.use( CKEditor );
Vue.use(ElementUI);
Vue.use(VueRouter);

//Vue.config.productionTip = false
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}
Vue.prototype.$axios = axios
new Vue({
  render: h => h(App),
  router: router
}).$mount('#app')
